package com.dream.demo.dao;

import com.dream.demo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    int updateUser(User user);

    List<User> queryAllUser();

    int deleteUserById(@Param("id") int id);

    int insertUser(User user);
}